package com.lz.ub

import com.felhr.usbserial.UsbSerialInterface.*

/**
 * @author You
 * UBC蓝牙回调数据解析器
 */
interface UBCReader : UsbReadCallback, UsbCTSCallback, UsbDSRCallback {

    interface Factory {

        /**
         * @param execute 线程调度
         * @tag
         */
        fun create(execute: UBCExecute, tag: Any?): UBCReader
    }

    //异常线程切换
    val execute: UBCExecute

    //扩展
    val tag: Any?

    override fun onCTSChanged(state: Boolean) = Unit

    override fun onDSRChanged(state: Boolean) = Unit
}